package com.stox.ui.javafx.charting.model;

import javafx.scene.paint.Color;
import lombok.Data;

import com.stox.dto.enumeration.Span;
import com.stox.dto.enumeration.SpanType;
import com.stox.dto.preference.Preference;
import com.stox.ui.javafx.charting.model.cursor.StoxChartingCursor.CursorType;

@Data
public class ChartingPreference implements Preference{

	private Color backgroundColor = Color.BLACK;
	
	private Color gridColor = Color.rgb(75, 75, 75, 0.5);
	
	private CursorType cursorType = CursorType.CROSSHAIR;
	
	private String volumePlotPosition = "PRICE_OVERLAY";
	
	private SpanType spanType = SpanType.DAILY;
	
	private Span span = Span.YEAR_2;
	
	private boolean autoSpan = true;
	
	private boolean autoSpanType = true;
	
	private int defaultNumberOfBars  = 300;
	
	/*
	 * Must be more than 6 times the minimumNumberOfBars
	 */
	private int maximumNumberOfBars = 700;
	
	private int minimumNumberOfBars = 100;
	
	private int autoFetchSize = 50;
	
	private Color[] colorArray = {
			Color.WHITE,
			Color.YELLOW,
			Color.AQUA,
			Color.BLUE,
			Color.MEDIUMPURPLE
	};

}
